package org.zch.service;

import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import org.zch.entity.po.IdeaPO;

import java.util.List;

/**
 * 意见反馈
 */
@Service
public interface IdeaService {

    /**
     * 添加意见反馈
     */
    @Async
    @Transactional(rollbackFor = Exception.class)
    Integer save(IdeaPO ideaPO);

    /**
     * 根据id删除内容
     */
    Integer deleteById(Integer id);

    List<IdeaPO> findAll();

}
